///首页文章
class HomeAudioModel {
  int _id;
  String _course_title;
  String _profile;
  String _status;
  int _tid;
  String _audio_url;
  String _sound_content;
  String _language;
  int _time;
  String _state;
  String _create_time;
  String _head_img;
  String _name;
  int delete_time;
  int _like;
  int _collect;
  int _player;

  int get id => _id;
  String get course_title => _course_title;
  String get profile => _profile;
  String get status => _status;
  int get tid => _tid;
  String get audio_url => _audio_url;
  String get sound_content => _sound_content;
  String get language => _language;
  int get time => _time;
  String get state => _state;
  String get create_time => _create_time;
  String get head_img => _head_img;
  String get name => _name;
  int get deleteTime => delete_time;
  int get like => _like;
  int get collect => _collect;
  int get player => _player;

  HomeAudioModel({
      int id,
      String course_title,
      String profile, 
      String status, 
      int tid, 
      String audio_url, 
      String sound_content, 
      String language, 
      int time, 
      String state, 
      String create_time, 
      String head_img, 
      String name, 
      int deleteTime, 
      int like, 
      int collect, 
      int player}){
    _id = id;
    _course_title = course_title;
    _profile = profile;
    _status = status;
    _tid = tid;
    _audio_url = audio_url;
    _sound_content = sound_content;
    _language = language;
    _time = time;
    _state = state;
    _create_time = create_time;
    _head_img = head_img;
    _name = name;
    delete_time = deleteTime;
    _like = like;
    _collect = collect;
    _player = player;
}

  HomeAudioModel.fromJson(dynamic json) {
    _id = json["id"];
    _course_title = json["course_title"];
    _profile = json["profile"];
    _status = json["status"];
    _tid = json["tid"];
    _audio_url = json["audio_url"];
    _sound_content = json["sound_content"];
    _language = json["language"];
    _time = json["time"];
    _state = json["state"];
    _create_time = json["create_time"];
    _head_img = json["head_img"];
    _name = json["name"];
    delete_time = json["deleteTime"];
    _like = json["like"];
    _collect = json["collect"];
    _player = json["player"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["id"] = _id;
    map["course_title"] = _course_title;
    map["profile"] = _profile;
    map["status"] = _status;
    map["tid"] = _tid;
    map["audio_url"] = _audio_url;
    map["sound_content"] = _sound_content;
    map["language"] = _language;
    map["time"] = _time;
    map["state"] = _state;
    map["create_time"] = _create_time;
    map["head_img"] = _head_img;
    map["name"] = _name;
    map["deleteTime"] = delete_time;
    map["like"] = _like;
    map["collect"] = _collect;
    map["player"] = _player;
    return map;
  }

}